evaluate

Evaluates the given expression for the node and returns XPathResult of the XPathResultType.ANY type.

Throws

if this method fails to evaluate the expression

if this node is closed


fun Node.evaluate(expression: XPathExpression, type: <Error class: unknown class>): XPathResult
fun Node.evaluate(expression: XPathExpression, type: <Error class: unknown class>): XPathResult

Evaluates the given expression for the node and returns XPathResult of the given type.

Throws

if this method fails to evaluate the expression or return a result of the given type

if this node is closed